package edzest.basic;

public class a20 {

	public static void main(String[] args) {
		int n=1; int k=2; int r=n;
		if(k<n){ 
		r=k; 
		System.out.println(r);
		}
		
		n=1; k=2;
		if(n<k){
			r=k;
			System.out.println(r);
		}else{
			k=n;
			System.out.println(k);
		}
		
		n=1; k=2;
		if(r<k){
			n=r;
			System.out.println(n);
		}else{
			k=2*r;
			System.out.println(k);
		}
		
		n=1; k=2; r=3;
		if(r<n+k){
			r=2*n;
			System.out.println(r);
		}else{
			k=2*r;
			System.out.println(k);
		}
	}

}
